// vue.config.js
const fs = require('fs')
module.exports = {
    lintOnSave: false, // 是否开启eslint保存检测，有效值：ture | false | 'error'
    devServer: {
        port: 8080,
        proxy: 'http://localhost:88'
    },
    //echarts
    transpileDependencies: [
        /\bvue-echarts\b/,
        /\bresize-detector\b/
    ],
    css: {
        loaderOptions: {
            sass: {
                data: fs.readFileSync('src/common/scss/variable.scss', 'utf-8')
            }
        }
    }
}